package com.usian;

import com.uaisn.pojo.Emp;
import com.uaisn.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "provider")
@RequestMapping("/user")
public interface UserFeign {

    /**
     *
     * @param id
     * @param name
     * @return
     */

    @RequestMapping("/findById/{id}/{name}")
    public User findById(@PathVariable Integer id,@PathVariable String name);

    @GetMapping("/findByIdd")
    public User findByIdd(@RequestParam Integer id,@RequestParam String name);

    @PostMapping("/findByUser")
    public User findByUser(@RequestBody User user);
}
